﻿namespace Admin.NET.Application.AGV;

/// <summary>
/// 获取报警信息详情
/// </summary>
public class GetAlarmDetailtDto
{
    public int flag { get; set; }
    public int id { get; set; }
}

/// <summary>
/// 获取报警信息列表
/// </summary>
public class GetAlarmMessageListDto
{
    /// <summary>
    /// 报警等级
    /// </summary>
    public List<string> AlarmLevels { get; set; }

    /// <summary>
    /// 已阅标识
    /// </summary>
    public List<string> AlarmReadFlags { get; set; }

    /// <summary>
    /// 报警状态
    /// </summary>
    public List<string> AlarmStatus { get; set; }

    /// <summary>
    /// 报警类型
    /// </summary>
    public List<string> alarmtypes { get; set; }

    /// <summary>
    /// 区域Id
    /// </summary>
    public long AreaId { get; set; }

    /// <summary>
    /// 开始时间
    /// </summary>
    public string BeginDate { get; set; }

    /// <summary>
    /// 报警内容
    /// </summary>
    public List<string> Contents { get; set; }

    /// <summary>
    /// 设备编号
    /// </summary>
    public List<string> DeviceNumbers { get; set; }

    /// <summary>
    /// 结束时间
    /// </summary>
    public string EndDate { get; set; }

    /// <summary>
    /// 当前分页
    /// </summary>
    public string PageNo { get; set; }

    /// <summary>
    /// 分页大小
    /// </summary>
    public string PageSize { get; set; }

    /// <summary>
    /// 用户Id
    /// </summary>
    public long UserId { get; set; } = 1;

    /// <summary>
    /// 片区域
    /// </summary>
    public string WorkAreaName { get; set; }
}


public class AlarmMessageListDto
{
    /// <summary>
    /// 片区域
    /// </summary>
    //public int endRow { get; set; }

    //public bool hasNextPage { get; set; }
    //public bool hasPreviousPage { get; set; }
    //public bool isFirstPage { get; set; }
    //public bool isLastPage { get; set; }

    public List<AlarmItemDto> list { get; set; }
    //public int navigateFirstPage { get; set; }
    //public int navigateLastPage { get; set; }
    //public int navigatePages { get; set; }
    //public int[] navigatepageNums { get; set; }
    //public int nextPage { get; set; }
    public int pageNum { get; set; }
    public int pageSize { get; set; }
    //public int pages { get; set; }
    //public int prePage { get; set; }
    //public int size { get; set; }
    //public int startRow { get; set; }
    public int total { get; set; }
}


public class AlarmItemDto
{
    //public string alarmCode { get; set; }
    public long alarmDate { get; set; }
    public byte alarmReadFlag { get; set; }
    public byte alarmStatus { get; set; }
    public byte alarmType { get; set; }
    public string alarmTypeName { get; set; }
    //public string areaName { get; set; }
    public string channelName { get; set; }
    //public int channelSeq { get; set; }
    public string deviceCode { get; set; }
    public string deviceNumber { get; set; }
    public byte handleStat { get; set; }
    //public int id { get; set; }
    //public long insertTime { get; set; }
    //public string insertTimeStr { get; set; }
    //public long invalidDate { get; set; }
    public string remark { get; set; }
    public byte unitType { get; set; }
    public string unitTypeDesc { get; set; }
}